<div class="header">
    <div class="box-main">
        <a href="<?=Yii::$app->homeUrl?>" class="logo"></a>
        <!--/logo-->
        <a href="#" class="search-trigger"><i class="fa fa-search"></i></a>
        <!--/search-trigger-->
        <ul class="menu" id="menu">
            <li><a href="<?=Yii::$app->homeUrl?>"><i class="fa fa-home"></i></a></li>
            <li><a href="<?=Yii::$app->urlManager->createUrl(['site/about'])?>">关于我们</a></li>
            <li>
                <a href="<?=Yii::$app->urlManager->createUrl(['product/index'])?>">产品</a>
                <ul class="sub-menu">
                    <?php foreach (\app\models\ProductCate::treeArr() as $key => $cate): ?>
                        <li><a href="<?=Yii::$app->urlManager->createUrl(['product/index','cid'=>$key])?>"><?=$cate?></a></li>
                    <?php endforeach; ?>
                </ul>
            </li>
            <li><a href="<?=Yii::$app->urlManager->createUrl(['post/index'])?>">快讯</a></li>
            <li><a href="<?=Yii::$app->urlManager->createUrl(['site/contact'])?>">联络我们</a></li>
        </ul>
        <!--/menu-->
        <div class="search-top">
            <div class="box-main">
                <a href="javascript:;" class="search-top-close"><i class="fa fa-times"></i></a>
                <div class="con">
                    <input type="text" class="txt" placeholder="输入资讯 / 产品关键字">
                </div>
            </div>
        </div>
        <!--/search-top-->
    </div>
</div>
<!--/header-->